package com.mzj.saas.rent;

import com.haixiaoke.saas.repository.core.AjaxResult;
import com.haixiaoke.saas.repository.core.BaseController;
import com.haixiaoke.saas.repository.pojo.Decoration;
import com.haixiaoke.saas.repository.service.IDecorationService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 装修情况Controller
 *
 * @author zhiping
 * @date 2023-04-06
 */
@RestController
@RequiredArgsConstructor
@RequestMapping("/house/decoration")
public class DecorationController extends BaseController {

    private final IDecorationService decorationService;

    /**
     * 查询装修情况列表
     */
    @GetMapping("/list")
    public AjaxResult list(Decoration decoration) {
        List<Decoration> list = decorationService.selectDecorationList(decoration);
        return AjaxResult.success(list);
    }


}
